package com.liang.service;

import com.liang.pojo.Books;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with Intellij IDEA
 *
 * @Auther: liangjy
 * @Date: 2021/09/14/14:20
 * @Description:
 */
public interface BookService {
    //增加一本书

    int addBook(Books books);
    //删除一本书
    int deleteBookById( int id);
    //更新一本书
    int updateBook(Books books);
    //查询一本书
    Books queryBookById(int id);
    //查询全部的书
    List<Books> queryAllBook();
    //新增查询
    Books queryBookByName(String bookName);
}
